package com.dong.action;

import com.dong.model.Person;
import com.dong.service.ServiceForPerson;
import com.dong.service.ServiceForPersonImpl;
import com.opensymphony.xwork2.ActionSupport;

public class HelloAction extends ActionSupport{
	private String sentence ;
	private Person person;
	private ServiceForPerson serviceFP = new ServiceForPersonImpl();
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	public String execute(){
		setSentence("anh dong la dep chai nhat roi");
		serviceFP.addUser(person);
		
		return "success";
	}
	public String getSentence() {
		return sentence;
	}
	public void setSentence(String sentence) {
		this.sentence = sentence;
	}
}
